package com.tangpian.sna.core.model;

import javax.persistence.Entity;

@Entity
public class WeiboItem extends Item {

	private String date;
	private String url;
	private String forwordCount;
	private String colloctCount;
	private String commentCount;
	private String name;
	private String source;
	
	// 原始id
	private String code;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getForwordCount() {
		return forwordCount;
	}

	public void setForwordCount(String forwordCount) {
		this.forwordCount = forwordCount;
	}

	public String getColloctCount() {
		return colloctCount;
	}

	public void setColloctCount(String colloctCount) {
		this.colloctCount = colloctCount;
	}

	public String getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(String commentCount) {
		this.commentCount = commentCount;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Override
	public String toString() {
		return "KEYWORD" + getKeyword() + ",	CREATED_AT:" + date + ", MID:"
				+ getId() + ",	URL:" + url + ",	转发:" + forwordCount + ",	收藏:"
				+ colloctCount + ",	评论:" + commentCount + ",	User:" + name
				+ ",	SOURCE:" + source + ",	TEXT:" + getContent();
	}
}
